<?php

namespace app\middleware;

use \yifang\middleware\Middleware_contract;

class Version implements Middleware_contract
{
    /**
     *  处理请求
     */
    public function handle($request, \Closure $next)
    {
        //初始化版本信息
        $version=app("L_Common_version")->currentInfo();
        data()->set("version",$version);
        $response = $next($request);
        return $response;
    }
}


